package net.adetech.framework.entity;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

public class ServiceResponse implements Serializable {
    private Map<String, Object> results = new HashMap<String, Object>();

    private String state;

    private String msg;


    public Map<String, Object> getResults() {
        return results;
    }

    public void setResults(Map<String, Object> results) {
        this.results = results;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object get(String name)
    {
        if (this.results==null)
        {
            return null;
        }
        else {
            return results.get(name);
        }
    }
}
